package org.tempuri;

import javax.xml.rpc.Stub;
public class DTSSoapProxy implements org.tempuri.DTSSoap {
  private String _endpoint = null;
  private org.tempuri.DTSSoap dTSSoap = null;
  
  public DTSSoapProxy() {
    _initDTSSoapProxy();
  }
  
  public DTSSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initDTSSoapProxy();
  }
  
  private void _initDTSSoapProxy() {
    try {
      dTSSoap = (new org.tempuri.DTSLocator()).getDTSSoap();
      if (dTSSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)dTSSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)dTSSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (Exception serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (dTSSoap != null)
      ((javax.xml.rpc.Stub)dTSSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public org.tempuri.DTSSoap getDTSSoap() {
    if (dTSSoap == null)
      _initDTSSoapProxy();
    return dTSSoap;
  }
  
  public java.lang.String transportEnergyData(java.lang.String buildingId, java.util.Calendar dateTime, java.lang.String message) throws java.rmi.RemoteException{
    if (dTSSoap == null)
      _initDTSSoapProxy();
    return dTSSoap.transportEnergyData(buildingId, dateTime, message);
  }
  
  
}